package com.yulan.fastkillcourse.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yulan.fastkillcourse.model.CourseOrder;
import com.yulan.fastkillcourse.mapper.CourseOrderMapper;
import com.yulan.fastkillcourse.service.CourseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseOrderServiceImpl extends ServiceImpl<CourseOrderMapper, CourseOrder> implements CourseOrderService {


    @Autowired
    CourseOrderMapper courseOrderMapper;

    @Override
    public List<CourseOrder> getTeacherAndCourseAndStudent(int tid, int cid) {
        return courseOrderMapper.getTeacherAndCourseAndStudent(tid,cid);
    }
}
